package peng.controller.AppResult;
/**
 * 登录消息
 * Created by hao on 2017/9/29.
 */
public class ResultMessage {

    public static final int code_OK_1=1;//成功
    public static final int code_FAIL_0=0;//失败
    public static final int code_session_Invalid_101=101;//session 失效
    public static final int code_Forbidden_403=403;//无权限操作

    private int code;
    private boolean status;//后台用，不需要改代码了 哈哈哈哈哈哈哈哈哈
    //消息
    private String message;
    //返回内容
    private String value;
    private Object data;


    public ResultMessage(boolean status, String message){
        this.status = status;
        this.message = message;
    }
    public ResultMessage(int code, String message){
        this.code = code;
        this.message = message;
    }
    public ResultMessage(int code, String message, String value){
        this.code = code;
        this.message = message;
        this.value = value;
    }
    public ResultMessage(int code, String message, Object data){
        this.code = code;
        this.message = message;
        this.data = data;
    }
    public ResultMessage(int code, String message, String value, Object data){
        this.code = code;
        this.message = message;
        this.value = value;
        this.data = data;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
}
